package com.woniu.microworkorderserver.workexaminemag.controller;


import com.woniu.microcommonsserver.entity.WorkListInfoEntity;
import com.woniu.microcommonsserver.param.ResponseMsg;
import com.woniu.microworkorderserver.workadminmag.service.WorDispatchService;
import com.woniu.microworkorderserver.workexaminemag.service.WorkExamineService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.xml.crypto.Data;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 我的审查
 */
@RequestMapping("/workexaminemag")
@RestController
public class WorkExamineContro {

    @Resource
    private WorkExamineService workExamineService;



    @RequestMapping(value = "/examine",produces = {"application/json;charset=utf-8"})
    public ResponseMsg examine(@RequestBody WorkListInfoEntity workListInfoEntity){

        //System.out.println(workListInfoEntity.getWorkTime());
       // System.out.println(workListInfoEntity.getAdminRemarkInfo());



        if(workListInfoEntity!=null) {
            workExamineService.examine(workListInfoEntity);
        }

        ResponseMsg success = new ResponseMsg(200,"成功通过","");

        return success;
    }

}
